package com.zsrt.day20170413.pm.reflect;
/**
*@author jzh
*@创建时间 2017年4月13日下午7:39:42
*类说明：
*/
public class Person {
	
	private int num;
	String sex;
	public String name;
	
	public Person() {
		super();
	}
	
	private Person(int num) {
		super();
		this.num = num;
	}

	public Person(int num, String name) {
		super();
		this.num = num;
		this.name = name;
	}
	
	public void info(){
		System.out.println("info ……");
	}
	
	private void eat(String food){
		System.out.println("eat "+food);
	}

	@Override
	public String toString() {
		return "Person [num=" + num + ", sex=" + sex + ", name=" + name + "]";
	}

}
